{% extends "base.html" %}

{% block page_content %}
<p>众里寻他千百度，那人却在灯火阑珊处!</p>
{% for item in users %}
    <p>{{item.name}}</p>
{% endfor %}
<div>
    <h1>{{name}}</h1>
    <p>这个按钮用来创建文件</p>
    <a class="btn btn-danger timeBtn">时间页面</a>
</div>
{% endblock %}

{% block page_scripts %}
<script type="text/javascript">
    $(".timeBtn").click(function(){
        $.ajax({
            url: "/time",
            type: "POST",
            data: {
                tag : 123
            },
            success: function(result){
                alert(result);
                return false;
                alert("success");
            }
        });
    });
</script>
{% endblock %}
